package api

import (
	"docker_xzdream/models"

	"github.com/gin-gonic/gin"
)

/**
创建人情类型
**/
func CreateSocialContactType(c *gin.Context) {
	name := c.PostForm("name")
	message := c.PostForm("message")
	sct := new(models.SocialContactType)
	sct.Create(name, message)
	c.JSON(200, gin.H{"code": 0, "message": "类型创建成功"})
}
